FROM elasticsearch:6.8.0

MAINTAINER "shengqi_it_email@163.com"

RUN apt-get update &&  apt-get install -y unzip

ENV PLUGIN_NAME elasticsearch-analysis-ik-6.8.0.zip
ENV PLUGIN_DOC_NAME ik

WORKDIR /plugin_temp_store
ADD elasticsearch-analysis-ik-6.8.0.zip /plugin_temp_store/

WORKDIR /usr/share/elasticsearch/plugins
WORKDIR $PLUGIN_DOC_NAME 

RUN ["unzip","-d","./","/plugin_temp_store/$PLUGIN_NAME"]

EXPOSE 9200
EXPOSE 9300
